import { createRouter, createWebHistory } from 'vue-router'
import LoginView from '@/views/LoginView.vue';
import IndexView from '@/Layout/index.vue';
//配置路由规则
const routes = [
    {
      path: "/login",
      name: "Login",
      component: LoginView,
    },
    {
      path: "/",
      redirect: "/Login"
    },
    {
      path:'/index',
      name:'Index',
      component:IndexView,
    },
  ];
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: routes
})

export default router
